package com.itheima.homework;

import java.util.Scanner;

public class Demo4 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入行数");
        int n =sc.nextInt();
        System.out.println("请输入列数");
        int m =sc.nextInt();
        liezheng(n,m);

    }

    public static void liezheng(int n,int m){
        int count = 0;
        for(int i = 0;i < n*m;i++){
            count++;
            System.out.print("@");
            if(count % m ==0){
                System.out.println();
            }
        }
    }

}
